const mongoose = require('mongoose')
const Scheme = mongoose.Schema
mongoose.connect('mongodb://localhost/code_order')

const menuTypeSchema = new Scheme({
  title: {  //名称
    type: String,
    required: true
  }
})

const MenuType = mongoose.model('menuType', menuTypeSchema)
module.exports = MenuType
